<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统信息修改</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="__PUB__/favicon.ico"> 
    <link href="__CSS__/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__CSS__/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__CSS__/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__CSS__/animate.min.css" rel="stylesheet">
    <link href="__CSS__/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="ibox-title">
	       <h5>网站信息修改</h5>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
 
                    <div class="ibox-content">
                        <form method="post" class="form-horizontal" action ="{:U('Site/edt')}" enctype = "multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">网站名称</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name ="name" value="{$Site.name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">Logo</label>

								<input id="lefile" type="file" style="display:none;"name ="logo"> 
                                <div class="col-sm-10">
                                   <div class="input-append">  
									    <input id="photoCover" type="text" class="form-control" style="width:300px;display:inline-block;">  
									    <a class="btn btn-sm btn-primary" onclick="$('#lefile').click();">上传图片</a>  
									</div>
                                     <if condition="$Site[logo] eq ''">
	                                     <td>暂无</td>
	                                 <else/>
	                                     <!-- <td><img  src=" {$Site.logo|substr=1}" height="50" /></td> --> 
	                                     <td><img  src="{$Site.logo|substr=1}" height="50" /></td>
	                                 </if>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">版权信息</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name ="scopyright"value="{$Site.scopyright}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">SEO标题</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name ="seo_title"value="{$Site.seo_title}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">SEO关键字</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name ="seo_keywords" value="{$Site.seo_keywords}">
                                </div>
                            </div>
                                      <div class="form-group">
                                <label class="col-sm-2 control-label">SEO描述</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name ="seo_description"value="{$Site.seo_description}">
                                </div>
                            </div>
                            <input type="submit" value="确定修改" class ="btn btn-sm btn-primary"style ="margin: 0 0 0 400px;"/>
                       </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__JS__/jquery.min.js?v=2.1.4"></script>
    <script src="__JS__/bootstrap.min.js?v=3.3.6"></script>
    <script src="__JS__/content.min.js?v=1.0.0"></script>
    <script src="__JS__/plugins/iCheck/icheck.min.js"></script>
    <script src="__JS__/jquery.min.js?v=2.1.4"></script>
    <script src="__JS__/bootstrap.min.js?v=3.3.6"></script>
    <script>

        $('#lefile').change(function() {  
        	$('#photoCover').val($(this).val());  
        });  
    </script>
</body>

</html>
